package conf2.util;



public class Arr {

    public static <T extends Comparable> boolean contains(T elem, T[] arr) {
        if (arr == null) {
            throw new NullPointerException();
        }
        for (int i = 0; i < arr.length; i++) {
            if (elem.equals(arr[i])) {
                return true;
            }
        }

        return false;
    }

}
